<div bindonce class="listPage o-x-s" style="overflow: hidden;" id="{{__id}}" ng-if="vo.isInit">

	<div style="height: calc(100% - 43px);" class="pr o-x-s my_box_one">
		<div class="alert-warning"
			style="padding: 10px 10px 0px 10px; border: 1px solid transparent; border-radius: 4px; display: inline-block; width: 100%; margin-bottom: -5px;"
			ng-if="needSumFields.length>0">
			<span class="fl ml 20">合计:</span>
			<div class="fl ml20 w90">
				<div ng-repeat="item in needSumFields" class="fl ml20 mb10">
					<span class="label label-info">{{item.fieldDesc}}:</span>
					<span class="label label-danger">{{item.val}}</span>
				</div>
			</div>
		</div>
		<div class="select-count" ng-if="selectCount>0">{{selectCount}}</div>
		<div style="position: fixed;" class="my_right_menu">
			<!--<div class="my_add" style="margin-bottom: 10px;">添加都对比</div>
			<div class="my_add" style="cursor: pointer;">添加到材料板</div>-->
		</div>
		<table class="table table-striped table-bordered table_hover text-center mb60">
			<thead>
				<tr>
					<!-- 多选 -->
					<th bo-if="selectType">
						<check-box-all ng-model="isSelectAll" list="list" ng-change="listService.selectAllData"
							parent="parent.listScope" bo-if="selectType==2"></check-box-all>
					</th>
					<!-- 多选 -->
					<th ng-if="parent.vo.showRowsNum" width="5%" class="th-nowap">序号</th>
					<th ng-style="{width:item.width}" class="th-nowap" ng-click="listService.orderByFn(this,item)"
						ng-repeat="item in parent.fields track by $index |  orderBy : 'sn'" ng-if="!item.hidden">
						<span ng-if="(item.sortAble != 1)">
							<span bo-text="item.fieldDesc"></span>
						</span>
						<span class="green-border pointer-th" ng-if="(item.sortAble == 1)">
							<span bo-text="item.fieldDesc"></span>
							<i
								ng-class="{'glyphicon glyphicon-triangle-top':item.sortDir=='asc','glyphicon glyphicon-triangle-bottom':item.sortDir=='desc'}"></i>
						</span>
					</th>
					<th class="tool-bar tool-bar-th">
						操作
					</th>
				</tr>
			</thead>
			<tbody>
				<!-- 数据遍历 这里用trackby 会有一些问题[在修改了数据之后,页面不会刷新], begin-->
				<tr ng-repeat="data in list" ng-init="data.$index = $index" sn="{{$index}}" class=""
					ng-click="listService.onDataClick(parent.listScope,list, data,$index)">
					<td bo-if="selectType" class="pr">
						<div
							style="width: 100%; height: 100%; display: inline-block; position: absolute; left: 0; top: 0; z-index: 1; cursor: pointer;">
						</div>
						<check-box-single type="radio" ng-model="data.idchecked" bo-if="selectType==1"></check-box-single>
						<check-box-single type="box" ng-model="data.idchecked" bo-if="selectType==2"></check-box-single>
					</td>
					<td ng-if="parent.vo.showRowsNum">{{$index+1}}</td>
					<td ng-repeat="field in parent.fields track by $index" bo-switch="field.controlType"
						class="{{field.align}} {{field.css}} overflow-eps th-nowap title_my" ng-if="!field.hidden">
						<div style="position: relative;" bo-switch-default class="{{field.tdCss[data.$index]}} mh34"
							ng-click="listService.detailJump(field,data)">

							<span bind-html="field.tdData[data.$index]" ng-if="field.bindHtml" class="inline-block"></span>
							<!-- 这里需要判断如果不需要排序的话就用bo-text , 需要排序的话 就用ng-bind  -->
							<span ng-if="!field.bindHtml" ng-bind="field.tdData[data.$index]" class="inline-block"
								ng-class="{hasDetailJump:field.href}"></span>
						</div>
					</td>
					<!-- 如果按钮是缩略型的,则只显示5%的宽度 ; 如果是对话框,则不显示按钮 -->
					<td class="tool-bar nowrap">
						<div class="toolbar-icons btn-group" style="display: flex;">
							<buttons-page parent="parent" button-scope="buttonScope" data="data" list="parent.listScope.list"
								btn-types="[1,3]"></buttons-page>
						</div>
					</td>
				</tr>
				<tr class="t-a-c" ng-show="!list||list.length==0">
					<td colspan="{{fieldsCount}}" ng-show="fieldsCount">暂无数据</td>
				</tr>
				<!-- 数据遍历 end-->
			</tbody>
		</table>
	</div>
	<div>
		<ab-page id="page_{{__id}}" class="fixed t-a-c" callback="listService.listCallback" parent="listScope" list="list"
			url="parent.vo.listUrl" params="parent.pageParams" is-init-data="parent.vo.initQuery"
			page-size="parent.vo.pageSize" page-scope="pageScope"></ab-page>
	</div>
</div>